<template>
  <el-dialog
    title="采集器详细信息"
    :close-on-click-modal="false"
    :visible.sync="visible"
    @close="close()">
    <el-form :model="meter" ref="dataForm" label-width="150px">
      <el-form-item label="区域名称" prop="parentBuildingName" >
        <el-input v-model="meter.buildingName" disabled :readonly="true" placeholder="点击选择所属区域" class="menu-list__input"></el-input>
      </el-form-item>
      <el-form-item label="计量器名称" prop="deviceName">
        <el-input v-model="meter.deviceName" disabled :readonly="true" placeholder="计量器名称"> </el-input>
      </el-form-item>
      <el-form-item label="计量器编码" prop="meterCode">
        <el-input v-model="meter.meterCodeName" disabled :readonly="true" placeholder="计量器编码"> </el-input>
      </el-form-item>
       <el-form-item label="计量器类型" prop="subitemType">
        <el-input v-model="meter.meterTypeName" disabled :readonly="true" placeholder="计量器类型"> </el-input>
      </el-form-item>
      <el-form-item label="采集类型" prop="subitemType">
        <el-input v-model="meter.subitemTypeName" disabled :readonly="true" placeholder="采集类型"> </el-input>
      </el-form-item>
      <el-form-item label="采集分类" prop="subitemValue">
        <el-input v-model="meter.subitemValueName" disabled :readonly="true" placeholder="采集分类"> </el-input>
      </el-form-item>
      <el-form-item label="入口线路计量器编码" prop="parentMeterCode">
        <el-input v-model="meter.parentMeterCode" disabled :readonly="true" placeholder="入口线路计量器编码"> </el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="close()">取消</el-button>
      <el-button type="primary" @click="close()">确定</el-button>
    </span>
  </el-dialog>
</template>

<script>
  export default {
    props:{
      meter:{},
      visible:{
        default:false,
        type:Boolean,
      }
    },
    data () {
      return {

      }
    },
    methods: {
      close(){
        this.$emit('closeView');
      }
    }
  }
</script>
